package com.hongyi.jsoup;

import com.hongyi.jsoup.pojo.Content;
import com.hongyi.jsoup.util.HtmlParseUtil;

import java.util.List;

/**
 * @Author hongyi
 * @Date 2025/6/16 3:00
 */
public class Main {
    public static void main(String[] args) {
        HtmlParseUtil htmlParseUtil = new HtmlParseUtil();
        String keywords = "JAVA图书";
        try {
            List<Content> contents = htmlParseUtil.parseJD(keywords);
            for (Content content : contents) {
                System.out.println(content);
            }
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
